package jp.co.sn.mml.pojo.tskbn;


public class TskbnId implements java.io.Serializable { 

	//分類コード
	private String bnrCd;
	//名称区分コード
	private String kbnCd;

	/** default constructor */
	public TskbnId(){

	}

	/** full constructor */
	public TskbnId(String bnrCd,String kbnCd){
		this.bnrCd = bnrCd;
		this.kbnCd = kbnCd;
	}

	//Property accessors
	public String getBnrCd(){
		return this.bnrCd;
	}

	public void setBnrCd(String bnrCd){
		this.bnrCd=bnrCd;
	}

	public String getKbnCd(){
		return this.kbnCd;
	}

	public void setKbnCd(String kbnCd){
		this.kbnCd=kbnCd;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof TskbnId))
			return false;

		TskbnId castOther = (TskbnId) other;

		return ((this.getBnrCd() ==  castOther.getBnrCd())
				||(this.getBnrCd()!=null && castOther.getBnrCd() !=null 
					&& castOther.getBnrCd() !=null 
					&& this.getBnrCd().equals(castOther.getBnrCd())))
			&& ((this.getKbnCd() ==  castOther.getKbnCd())
				||(this.getKbnCd()!=null && castOther.getKbnCd() !=null 
					&& castOther.getKbnCd() !=null 
					&& this.getKbnCd().equals(castOther.getKbnCd())))
;	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getBnrCd() == null ? 0 : this.getBnrCd().hashCode());
		result = 37 * result
				+ (getKbnCd() == null ? 0 : this.getKbnCd().hashCode());
		return result;
	}

}